class FarmlandRenderer : public IBlockRenderer
{
public:
	ITexture *Texture;

	FarmlandRenderer(ITexture *texture) :
		Texture(texture)
	{
	}

	int GetTypeData(const int &data) { return data; }

	void Render(Schematic *schematic, RendererBase *renderer, const Block &block, const Point3i &position)
	{
		renderer->Draw(Box(Texture, Point3i(16, 15, 16), Point3i(0, 1, 0)).SetAll(Point2i(2 * 16, 1)).SetTop(Point2i(((block.Data > 5) ? 6 : 7) * 16, 5 * 16)));
	}
};